package com.zt.teacher.dao;

import com.zt.common.pojo.ActiveClass;
import com.zt.common.pojo.ClassSelection;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * description:
 * author:zt
 * date:2021-12-20
 */
@Mapper
public interface ClassSelectionDao {

    void insertCompulsory(@Param("activeClassId") int activeClassId,@Param("originClassIds") List<Integer> originClassIds);

    List<String> getStuIdByClassId(Integer classId);

    void delete(@Param("studentIds") List<String> studentIds, @Param("classId") Integer classId);

    void addScore(ClassSelection classSelection);

    List<ClassSelection> getStuAndScoreByClassId(int classId);
}
